<template>
	<view class="searchresult" :style="{minHeight: wHeight + 'px' }">
		<view class="searchresult-index" v-for="(item, index) in searchresult" :key='index'>
			<view class="searchresult-top">
				<view class="searchresult-topimg">
					<!-- <image src="" mode=""></image>? -->
					<image :src=" '/static/image/' + item.userimg + '.png' " mode=""></image>
					<view class="introduce">
						<view class="name">
							<text>{{item.lsname}}</text>
						</view>
						<view class="cen">
							<view class="">咨询人数:{{item.number}}</view>
							<view class="">从业年限:{{item.year}}年</view>
						</view>
					</view>
				</view>
				<view class="examine" @click="lifeexperience">
					<text>查看</text>
				</view>
			</view>
			<view class="searchresult-bottom">
				<view class="bottom-ul">
					<view class="bottom-li" v-for="(item,index) in dispute" :key="pute">
						<text>{{item.pute}}</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				wHeight: '',
				searchresult: [{
					userimg: 'weixzf',
					lsname: '张三律师',
					number: '12346',
					year: '15',
				}, ],
				dispute: [{
						pute: '1'
					},
					{
						pute: '1'
					},
					{
						pute: '1'
					},
					{
						pute: '1'
					},
				]
			}
		},
		onLoad() {
			this.wHeight = this.$store.state.ContentHeight - 45;
		},
		methods:{
			lifeexperience(){
				uni.navigateTo({
					url:'/pages/public/lifeexperience'
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.searchresult {
		background: #EFEFEF;
		position: absolute;
		width: 100%;

		.searchresult-index {
			width: 686rpx;
			background-color: #FFFFFF;
			margin: 0 auto;
			margin-top: 30rpx;

			.searchresult-top {
				display: flex;
				justify-content: space-around;
				padding: 20rpx;

				.searchresult-topimg {
					display: flex;

					image {
						width: 124rpx;
						height: 137rpx;
						border-radius: 50%;
					}

					.introduce {
						margin-left: 20rpx;

						.name {
							display: flex;
							align-items: center;

							text {
								font-size: 35rpx;
								font-family: Source Han Sans CN;
								font-weight: bold;
								color: #333333;
							}
						}

						.cen {
							margin-top: 10rpx;
							font-size: 24rpx;
							font-family: Source Han Sans CN;
							font-weight: 400;
							color: #666666;
						}
					}

				}

				.examine {
					width: 129rpx;
					height: 48rpx;
					background: #0099FF;
					border-radius: 24rpx;
					text-align: center;
					line-height: 48rpx;

					text {
						font-size: 27rpx;
						font-family: Source Han Sans CN;
						font-weight: 500;
						color: #FFFFFF;
					}
				}
			}

			.searchresult-bottom {
				padding-bottom: 40rpx;

				.bottom-ul {
					display: flex;
					-webkit-flex-wrap: wrap;
					margin-left: 25rpx;

					.bottom-li {
						margin: 10rpx 20rpx;
						width: 113rpx;
						height: 36rpx;
						background: #FFFFFF;
						border: 1rpx solid #0099FF;
						display: flex;
						align-items: center;
						justify-content: center;

						text {
							font-size: 23rpx;
							font-family: Source Han Sans CN;
							font-weight: 400;
							color: #0073BF;
						}
					}
				}
			}
		}
	}
</style>
